package com.purchase.ml.bean.req.prod;

import com.baomidou.mybatisplus.annotation.TableField;
import com.purchase.ml.consts.Constants;
import com.purchase.ml.entity.prod.SysCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author :zxm
 * @date :2021/2/25 18:43
 * @description :some description
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "修改分类model")
public class SysCategoryEditDto extends SysCategory implements Serializable { //todo：main: 继承对象只能是PageDto或者不继承
    @ApiModelProperty(value = "主键id",required = true)
    @NotNull(message = "ID tidak boleh kosong")
    private Long id;

    private Long categoryId; //todo：无需参数

    /**
     * 状态：开始是查询全部的：如果商户禁用了某个目录；就将该目录从查询到的数据中去掉
     */
    @ApiModelProperty(value = "状态：开始是查询全部的：如果商户禁用了某个目录；就将该目录从查询到的数据中去掉")
    private Integer state = Constants.NORMAL_STATE;

    /**
     * 目录名称
     */
    @ApiModelProperty(value = "目录名称")
    private String categoryName;

    /**
     * 索引ID
     */
    @ApiModelProperty(value = "索引ID")
    private Integer index;
}
